﻿using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
using Castle.Windsor.Installer;
using Event.Authentication.EventBusPattern;

namespace Event.Authentication.ContainerInstallers
{
    public class ObservedServiceInstaller:IWindsorInstaller
    {
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            container.Register(Classes.FromThisAssembly().BasedOn<IObservedService>().WithService.Base().LifestyleScoped());
        }
    }
}